package com.fast.controller.thymleaf;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author hujw
 * @since 2022/3/28
 */
@Controller
public class ThymeleafController {

    @RequestMapping({"/index","/"})
    public String index(){
        return "index";
    }

    @RequestMapping("/test1")
    public String test1(){
        return "views/test1";
    }

    @RequestMapping("/test2")
    public String test2(){
        return "views/test2";
    }

    @RequestMapping("/test3")
    public String test3(){
        return "views/test3";
    }
}
